package com.ysd.lis.controller.lab;

import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.lab.LabRptCampusArea;
import com.ysd.lis.request.lab.RptCampusDto;
import com.ysd.lis.request.lab.RptCampusParam;
import com.ysd.lis.service.lab.LabRptCampusAreaService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author prs
 * @since 2025-02-21
 */
@RestController
@RequestMapping("/lis/lab/rptCampusArea")
public class LabRptCampusAreaController extends BaseController {
    @Autowired
    LabRptCampusAreaService labRptCampusAreaService;
    @ApiOperation("查询")
    @GetMapping("/findRptCampusAreaList")
    public Result findRptCampusAreaList(RptCampusParam param){
        return labRptCampusAreaService.findRptCampusAreaList(param);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteRptCampusArea")
    public Result batchDeleteRptCampusArea(@RequestBody RptCampusDto dto){
        return  labRptCampusAreaService.batchDeleteRptCampusArea(dto);
    }

    @ApiOperation("根据详情id删除详情数据")
    @PostMapping("/deleteRptCampusArea")
    public Result deleteRptCampusArea(@RequestBody LabRptCampusArea campusArea) {
        return labRptCampusAreaService.deleteRptCampusArea(campusArea);
    }

    @ApiOperation("查询")
    @GetMapping("/getRptGroupsByCampus")
    public Result getRptGroupsByCampus(RptCampusParam param){
        return labRptCampusAreaService.getRptGroupsByCampus(param);
    }

    @ApiOperation("新增")
    @PostMapping("/addRptCampusArea")
    public Result addRptCampusArea(@RequestBody LabRptCampusArea rptCampusArea){
        return  labRptCampusAreaService.addRptCampusArea(rptCampusArea);
    }

}
